package cn.java.lambda.test2;

/**
 * @author 攀博课堂(www.pbteach.com)
 * @version 1.0
 **/
public class Fun3Demo {

    public static void main(String[] args) {

        //完整写法：
        doFun3((String name)-> {
            System.out.println(name);
        });


        //调用doFun3，简化写法
        doFun3(name-> System.out.println(name));


    }

    public static void doFun3(Fun3 fun3){
        fun3.handler("攀博课堂www.pbteach.com");
    }

}
